package com.czxy.changgou3.feign;

import com.czxy.changgou3.vo.SearchSku;
import com.czxy.vo.BaseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * @author zhangmengxiang1@itcast.cn
 * @version 1.0
 * @date 2020/4/23
 */
@FeignClient(value="cgwebservice",path = "/sku")
public interface SkuFeign {

    @GetMapping("/esData")
    public BaseResult<List<SearchSku>> findAll();

}

